<template>
	<view class="p40">
		<view class="f20 fw hg-48">
			{{list.title}}
		</view>
		<view class="flex j-between f12 co--999 mt40">
			<view class="">
				{{list.sent_date}}
			</view>
			<view class="">
				浏览量: {{list.virtual_view_num}}
			</view>
		</view>
		<view class="mt40" v-html="list.content">
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				id: null,
				list: {}
			}
		},
		onLoad(e) {
			console.log(e.id, 'e')
			if (e.kai) {
				uni.setNavigationBarTitle({
					title: '开班信息详情'
				})
				this.id = e.id
				this.getkaiban()
			} else if (e.qy) {
				uni.setNavigationBarTitle({
					title: '权益维护详情'
				})
				this.id = e.id
				this.getquanyi()
			} else if (e.gkzp) {
				uni.setNavigationBarTitle({
					title: '公开招聘详情'
				})
				this.id = e.id
				this.getgkzp()
			} else {
				this.id = e.id
				this.getlist()
			}
		},
		methods: {
			getMore() {
				// this.pageNo++
				console.log('1')
			},
			async getlist() {
				let {
					data
				} = await this.$rqt.policydetailId({
					id: this.id
				})
				this.list = data
			},
			async getkaiban() {
				let {
					data
				} = await this.$rqt.skillClassDetail({
					id: this.id
				})
				this.list = data
			},
			async getquanyi() {
				let {
					data
				} = await this.$rqt.equitiesdetail({
					id: this.id
				})
				this.list = data
			},
			async getgkzp() {
				let {
					data
				} = await this.$rqt.announcementDetail({
					id: this.id
				})
				this.list = data
			}
		}
	}
</script>

<style>
	page {
		background-color: #fff;
	}
</style>